import styles from './index.less';
import {LeftOutlined} from '@ant-design/icons';
import {Col, Row} from 'antd';
import React from 'react';

export default function PageHeader(props: { onBack: Function, title: string }) {
   return <div className={styles.pageHeader}>
      <Row>
         <Col span={3} onClick={() => props.onBack()}>
            <LeftOutlined />
         </Col>
         <Col span={18}>
            {props.title}
         </Col>
      </Row>
   </div>;
}
